<template>
    <div class="menus">
        御剑乘风来,除魔天地间!====左侧导航组件===sideBar
        页面导航
        <h3 v-for="(item, index) in liks" :key="index">
            <router-link :to="item.path">{{item.component}}</router-link>
        </h3>
    </div>
</template>
           
<script>
export default {
  data() {
    return {
      liks: JSON.parse(localStorage.getItem('menus')) || []
    }
  },
  created() {
    //this.liks = localStorage.getItem('menus') || []
  }
}
</script>
<style scoped lang='less'>
.menus {
  width: 120px;
}
</style>